Boxed Permutation Pattern Matching

نویسندگان

  • Mika Amit
  • Philip Bille
  • Patrick Hagge Cording
  • Inge Li Gørtz
  • Hjalte Wedel Vildhøj
چکیده

Given permutations T and P of length n and m, respectively, the Permutation Pattern Matching problem asks to find allm-length subsequences of T that are order-isomorphic to P . This problem has a wide range of applications but is known to be NP-hard. In this paper, we study the special case, where the goal is to only find the boxed subsequences of T that are order-isomorphic to P . This problem was introduced by Bruner and Lackner who showed that it can be solved in O(n3) time. Cho et al. [CPM 2015] gave an O(n2m) time algorithm and improved it to O(n2 logm). In this paper we present a solution that uses only O(n2) time. In general, there are instances where the output size is Ω(n2) and hence our bound is optimal. To achieve our results, we introduce several new ideas including a novel reduction to 2D offline dominance counting. Our algorithm is surprisingly simple and straightforward to implement. 1998 ACM Subject Classification F.2.2 Computations and discrete structures, Geometrical problems and computations, Pattern matching. G.2.1 Combinatorial algorithms, Permutations and combinations

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A W[1]-Completeness Result for Generalized Permutation Pattern Matching

The NP-complete Permutation Pattern Matching problem asks whether a permutation P (the pattern) can be matched into a permutation T (the text). A matching is an order-preserving embedding of P into T . In the Generalized Permutation Pattern Matching problem one can additionally enforce that certain adjacent elements in the pattern must be mapped to adjacent elements in the text. This paper stud...

متن کامل

Kernelization lower bound for Permutation Pattern Matching

A permutation π contains a permutation σ as a pattern if it contains a subsequence of length |σ| whose elements are in the same relative order as in the permutation σ. This notion plays a major role in enumerative combinatorics. We prove that the problem does not have a polynomial kernel (under the widely believed complexity assumption NP 6⊆ co-NP/poly) by introducing a new polynomial reduction...

متن کامل

The computational landscape of permutation patterns

In the last years, different types of patterns in permutations have been studied: vincular, bivincular and mesh patterns, just to name a few. Every type of permutation pattern naturally defines a corresponding computational problem: Given a pattern P and a permutation T (the text), is P contained in T? In this paper we draw a map of the computational landscape of permutation pattern matching wi...

متن کامل

A reciprocity approach to computing generating functions for permutations with no pattern matches

2011 Using the reciprocal to calculate generating functions for permutations with no consecutive pattern matches Permutation Patterns 2011 San Luis Obispo, CA 2011 Reciprocal method to enumerate permutations with no consecutive pattern matches FPSAC 2011 Reykjavik, Iceland 2010 Pattern matching in the cycle structure of permutations Permutation Patterns 2010 Dartmouth, NH 2010 Advancement to ca...

متن کامل

A linear time algorithm for consecutive permutation pattern matching

We say that two sequences x and w of length m are order-isomorphic (of the same “shape”) if w[i] ≤ w[j] if and only if x[i] ≤ x[j] for each i, j ∈ [1,m]. We present a simple linear time algorithm for checking if a given sequence y of length n contains a factor which is order-isomorphic to a given pattern x. A factor is a subsequence of consecutive symbols of y, so we call our problem the consec...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2016